#include "tidarr.h"
int tidinit(tid_t *ptidarr,int workernum)
{
    ptidarr->workernum = workernum;
    ptidarr->tidarr = (pthread_t *)calloc(workernum,sizeof(pthread_t));
    return 0;
}
